package demo7.demo1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Component;

@Component
public class Stu<Sru> {

    @Autowired
    @Qualifier(value = "student2")
    private Teacher teacher;

    public  void sdd(){
        teacher.hi();

    }
}
